
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="orgInfo" cellspacing="1">
	<tr><td colspan="6" class="t_bar">&nbsp;单位基本信息</td></tr>
	<tr>
		<td width="150px" nowrap align="right">单位名称：</td>
		<td colspan='5'>
		    <input type="hidden" name="organizations/organization[0]@submit_org" value="1" > 
			<input type="hidden" name="organizations/organization[0]@sequence_no" value="1" >
			<input type="hidden" name="organizations/organization[0]/org_code" 
							value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >
			<span name="organizations/organization[0]/cname">
				
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/cname"/>
			</span>&nbsp;
		</td>
    </tr>
    <tr>
		<td align="right">法人代码：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/org_no">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_no"/>
			</span>&nbsp;
		</td>
		<td width="120px" nowrap align="right">电子邮件：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/org_licence">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/email"/>
			</span>&nbsp;
	    </td>
	    <td width="140px" nowrap align="right">邮编：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/zip_code">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/zip_code"/>
			</span>&nbsp;
	    </td>
    </tr>
    <tr>
        <td width="" nowrap align="right">通讯地址：</td>
		<td colspan='3'>
			<span name="organizations/organization[0]/address">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/address"/>
			</span>&nbsp;
		</td>
		
        <td align="right">传真：</td>
		<td >
			<span name="organization_persons/organization_person[00]/fax">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/fax"/>
			</span>&nbsp;
		</td>
		
   </tr>
    <tr>
        <td align="right">联系人：</td>
		<td>
			<span name="organization_persons/organization_person[00]/cname">
				 <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/cname"/>
			</span>&nbsp;
			<input type="hidden"
				  name="organization_persons/organization_person[00]@psn_type" value="lianxiren">
		</td>
		<td align="right">电话：</td>
		<td>
			<span name="organization_persons/organization_person[00]/tel">
				 <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/tel"/>
			</span>&nbsp;
		</td>
		<td align="right">手机：</td>
		<td>
			<span name="organization_persons/organization_person[00]/mobile">
				 <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/mobile"/>
			</span>&nbsp;
		</td>
    </tr>
    
    <tr>
		<td align="right">开户银行：</td>
		<td >
		    <span name="organizations/organization[0]/bank_orgname">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_orgname"/>
			</span>&nbsp;
		</td>
		<td align="right">银行账号：</td>
		<td >
		    <span name="organizations/organization[0]/bank_account">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_account"/>
			</span>&nbsp;
	    </td>
	    <td align="right">信用等级：</td>
		<td >
		    <span name="organizations/organization[0]/bank_credit">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_credit"/>
			</span>&nbsp;
	    </td>
    </tr>
    <tr>
		<td align="right">注册类型：</td>
		<td colspan="5">
		<span id="advant_name"></span>&nbsp;
        </td>
	</tr>
	<tr>	
		<td align="right">注册时间：</td>
		<td>
		    <span name="organizations/organization[0]/registe_date">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_date"/>
			</span>&nbsp;
		</td>
		<td align="right">注册资金：</td>
		<td >
		    <span name="organizations/organization[0]/registe_fund">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund"/>
			</span>&nbsp;
	    </td>
	   <td  align="right" nowrap>其中外资比例：</td>
		<td >
		    <span name="organizations/organization[0]/registe_fund_foreign_rate">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_foreign_rate"/>
			</span>&nbsp;
	    </td>
    </tr>
    
    <!-- 
    <tr>
		<td  nowrap  align="right">公司员工人数：</td>
		<td >
		    <span
			name="organizations/organization[0]/people_count_total"> <x:out
					select="$xmlData/data/organization_persons/people_count_total" />&nbsp;
		</span>&nbsp;
		</td>
		<td nowrap align="right">其中：大专以上人员数：</td>
		<td>
		    <span name="organizations/organization[0]/degree_total" id="degree_total"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/degree_total" /></span>
		    <input type="hidden" id='degree_college' value="<x:out select='$xmlData/data/organization_persons/degree_college' />">
		    <input type="hidden" id='degree_bachelor' value="<x:out select='$xmlData/data/organization_persons/degree_bachelor' />">
		    <input type="hidden" id='degree_master' value="<x:out select='$xmlData/data/organization_persons/degree_master' />">
		    <input type="hidden" id='degree_doctor' value="<x:out select='$xmlData/data/organization_persons/degree_doctor' />">
		    <script type="text/javascript">
	           $(function() {
		             var degree_college=$("#degree_college").val();
		             var degree_bachelor=$("#degree_bachelor").val();
		             var degree_master=$("#degree_master").val();
		             var degree_doctor=$("#degree_doctor").val();
		             var count=parseInt(degree_college)+parseInt(degree_bachelor)+parseInt(degree_master)+parseInt(degree_doctor);
		             $("#degree_total").text(count);
	           });
            </script>
	    </td>
	    <td nowrap align="right">其中：研发人员数：</td>
		<td>
		    <span
			name="organizations/organization[0]/work_yanfa"> <x:out
					select="$xmlData/data/organization_persons/work_yanfa" />&nbsp;
		</span>&nbsp;
	    </td>
    </tr>
    
     -->
     
    <tr>
		<td align="right" nowrap>近两年银行贷款总额：</td>
		<td>
			<x:out select="$xmlData/data/proposal/loan_ceiling"/>万元
		</td>
		<td align="right">余额：</td>
		<td >
			 <x:out select="$xmlData/data/proposal/balance"/>万元
	    </td>
	    <td  align="right">到期偿还情况：</td>
		<td>
			 <x:out select="$xmlData/data/proposal/repay_name"/>
	    </td>
    </tr>
</table>
<br>
<div class="t_bar">
	主要股东
</div>
	<table border="0" cellspacing="0" cellpadding="0" class="table01" >
		<thead>
			<tr>
				<th align="center" width="40%"  nowrap>主要股东名称</th>
				<th width="20%" align="center">股东出资额（万元）</th>
				<th width="20%">出资形式</th>
				<th width="20%">所占股份比例（%）</th>
				
			</tr>
		</thead>
		<tbody id="tab">
		<c:set value="0" var="index" scope="page" />
		<x:forEach
			select="$xmlData/data/organizations/shareholders/shareholder"
			var="shareholder">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="left">
						<x:out select="$shareholder/cname" />&nbsp;
				</td>
				<td align="right">
						<x:out select="$shareholder/invest_amount" />&nbsp;
				</td>
				<td align="left">
						<x:out select="$shareholder/invest_type_name" />&nbsp;
				</td>
				<td align="center">
						<x:out select="$shareholder/invest_percent" />&nbsp;
				</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
	</table>
<br>
<div class="t_bar">
	近三年曾获政府资助的情况（金额：万元）
</div>
<table class="table01" width="100%" border="0" cellpadding="0" id="orgInfo" cellspacing="1">
	<tr>
		<th>项目名称</th>
		<th>资助部门</th>
		<th>资助时间</th>
		<th>资助金额</th>
		<th>项目验收情况</th>
		<th>资助形式</th>
		<th>借款偿还情况</th>
	</tr>
	
	<tbody id="tab">
	   <c:set value="0" var="index" scope="page" />
		 <x:forEach select="$xmlData/data/research/fund_project" var="research">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="left">
				    <x:out select="$research/ctitle" />
				</td>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/award_dept"> <x:out
							select="$research/award_dept" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/award_date"> <x:out
							select="$research/award_date" />
				</span></td>
				<td align="right"><span
					name="research/fund_project[${flag}${index}]/award_amt"> <x:out
							select="$research/award_amt" />
				</span></td>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/accept_flag_name">
						<x:out select="$research/accept_flag_name" />
				</span></td>
				<td align="left"><span name="research/fund_project[${flag}${index}]/award_type_name">
						<x:out select="$research/award_type_name" />
				</span></td>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/repay_flag_name">
						<x:out select="$research/repay_flag_name" />
				</span></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
<script type="text/javascript">
$(document).ready (function() {
	var advant_name="<x:out select="$xmlData/data/proposal/basic/advant_name" />";
	advant_name=advant_name.replace(/,/g, "，");
	$("#advant_name").text(advant_name);
	
});

</script>
